package com.example.score.mapper;

import com.example.score.entity.*;
import com.example.score.entity.vo.GradeVo;
import com.example.score.entity.vo.TUserVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface GradeMapper {
    List<TotalGradeDetail> getAllGradeDetails(Integer classId);
    List<TotalGrade> getTotalOfTeacher(Integer classId);
    List<TotalGrade> getTotalOfStudent(Integer classId);
    List<TUser> unargument(Integer dbr);
    List<GradeVo> argument(Integer dbr);

    List<GradeStudentList> viewed(Map<String, Integer> map);
    int updateAnswerGrade(Grade grade);
    int updateScroe(UpdateScore updateScore);

    List<Course> pfbzmsg(Integer classId);

    List<GradeStudentList> showAll(Integer classId);
    

    void updateStatesTo2(Integer classId);
    void over(Integer classId);

    void updateRandomStudentState(Integer classId);

    RandomStudent selectRandomStudents(Integer classId);

    int getTYPF(Integer classId);

    int getSYPF(Integer classId);

    int getpfrs(Integer classId);
}
